<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.springframework.org/schema/data/jaxb">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>华南农业大学实验室报修系统</title>
	<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">
	<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css">
	<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
	<link rel="stylesheet" th:href="@{~/mobile/common.css}" type="text/css">
</head>
<body>
	<div class="weui-tab">
		<div class="weui-tab__bd">
			<div class="weui-cells__title" style="font-size: 20px;">华南农业大学实验室报修系统登录</div>
			<form id="registerForm" method="post" action="/mobile/start/register">
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label">手机号（作为登录帐号）</label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="text" name="phoneNumber" placeholder="请在此输入手机号...">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="text" name="name" placeholder="请在此输入您的姓名...">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label">昵称</label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="text" name="nickname" placeholder="请在此输入您的昵称...">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label">密码</label></div>
					<div class="weui-cell__bd">
						<input id="password1" class="weui-input" type="password" name="password" placeholder="请在此输入您的密码...">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label">重复密码</label></div>
					<div class="weui-cell__bd">
						<input id="password2" class="weui-input" type="password" placeholder="请在此再次输入您的密码...">
					</div>
				</div>
				<div class="weui-btn-area">
					<btn class="weui-btn weui-btn_primary" onclick="register()" >注册</btn>
				</div>
				<div class="weui-btn-area" style="margin-top:10px">
					<p>${message!}</p><!--th:text="${message!}"-->
				</div>
			</form>

			<div class="weui-btn-area">
				<a class="weui-btn weui-btn_warn" href="/mobile/start/login" >返回</a>
			</div>
		</div>
	</div>
	<!-- body 最后 -->
	<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/jquery-weui.min.js"></script>
	<!-- 如果使用了某些拓展插件还需要额外的JS -->
	<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/swiper.min.js"></script>
	<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/city-picker.min.js"></script>
	<script th:src="@{~/mobile/start/HomePage.js}"></script>
	<script>
        function register() {
            // if($('#paasword1').val() != $('#password2').val()){
            //     $.toast("两次输入密码不一致，请重新输入！", "forbidden");
            //     return false;
			// }
            $('#registerForm').submit();
        }
	</script>
</body>
</html>